/**
 * @author cn
 * @date 2022年04月09日 17:31
 */
public class Test_listener {
    public static void main(String[] args) {


        MyEventSource myEventSource = new MyEventSource();

        MyEventListenerImpl myEventListenerImpl = new MyEventListenerImpl();

        myEventSource.addListener(myEventListenerImpl);


        myEventSource.pushEvent();
    }
}
